import {
	createApp
} from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'


import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import '@/styles/index.scss'

import installIcons from '@/icons'

import './permission'

import i18n from './i18n'

import installFilter from '@/filter'
import insatllDirective from '@/directives'

const app = createApp(App)

installIcons(app)
installFilter(app)
insatllDirective(app)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
	app.component(key, component)
}


app.use(store).use(router).use(ElementPlus).use(i18n).mount('#app')
